win32: Actually check for IPrintDialogCallback in configure
authorMorten Welinder <mortenw@gnome.org>
Fri, 28 Oct 2011 07:10:40 +0000 (09:10 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 10 Nov 2011 16:41:08 +0000 (17:41 +0100)
configure.ac
gtk/gtkprintoperation-win32.c

index 587a9d08f708851cf8d43090be769e0d3e9b6b4c..fb5f8edbf7d05cc8908d253b0b95d3f8a34c4a28 100644 (file)
@@ -1492,6 +1492,9 @@ if test "x$enable_test_print_backend" != "xno" ; then
 fi
 AM_CONDITIONAL(TEST_PRINT_BACKEND, test "x$enable_test_print_backend" != "xno")
 
+if test "$os_win32" = "yes"; then
+  AC_CHECK_TYPES([IPrintDialogCallback],[],[],[[#include <windows.h>]])
+fi
 
 ################################################################
 # Strip -export-dynamic from the link lines of various libraries
index 008e7bd0ba2485c8879a24b218a7c41ebc94db3d..b7c68dbf92b2b3e833abc612457eb2eda36aeb04 100644 (file)
@@ -71,7 +71,7 @@ static void win32_poll_status (GtkPrintOperation *op);
 
 static const GUID myIID_IPrintDialogCallback  = {0x5852a2c3,0x6530,0x11d1,{0xb6,0xa3,0x0,0x0,0xf8,0x75,0x7b,0xf9}};
 
-#if !defined (_MSC_VER) && !defined (__MINGW64_VERSION_MAJOR)
+#if !defined (_MSC_VER) && !defined (HAVE_IPRINTDIALOGCALLBACK)
 #undef INTERFACE
 #define INTERFACE IPrintDialogCallback
 DECLARE_INTERFACE_ (IPrintDialogCallback, IUnknown)